<template>
	<view class="container">
		<u-navbar title="核销二维码" :autoBack="true" :placeholder="true" titleStyle="color:#fff" bgColor="#7e5a91"
			leftIconColor="#fff"></u-navbar>

		<view class="qr-box">
			<image class="qr-img" :src="qrCodeUrl" mode=""></image>
		</view>

	</view>
</template>

<script>
	export default {
		data() {
			return {
				orderId: '',
				qrCodeUrl: ''
			}
		},

		async onLoad(option) {
			this.orderId = option.id;
			console.log(this.orderId);

			let res = await this.$api.hexarcode({
				order_no: option.id
			});

			this.qrCodeUrl = res.data.qrCodeUrl;

		},
		methods: {

		}
	}
</script>

<style lang="scss" scoped>
	.container {
		text-align: center;

		.qr-box {
			margin-top: 200rpx;

			.qr-img {
				width: 400rpx;
				height: 400rpx;
			}

		}
	}
</style>